package site.beanyon.now.model.po;

import java.util.Date;

/**
 * 用户登录记录持久化描述类
 */
public class LoginRecordPO {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 创建时间
     */
    private Date createdAt;

    public LoginRecordPO(Integer userId) {
        this.userId = userId;
    }

    public LoginRecordPO(Integer id, Integer userId, Date createdAt) {
        this.id = id;
        this.userId = userId;
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "LoginRecordPO{" +
                "id=" + id +
                ", userId=" + userId +
                ", createdAt=" + createdAt +
                '}';
    }
}
